/*******************************************************************************
 * Copyright (c) 2011 Irineu Martins de Lima Moura (imlm2).
 * This file is part of JBeat.
 * 
 *     JBeat is free software: you can redistribute it and/or modify
 *     it under the terms of the GNU Lesser General Public License as published by
 *     the Free Software Foundation, either version 3 of the License, or
 *     (at your option) any later version.
 * 
 *     JBeat is distributed in the hope that it will be useful,
 *     but WITHOUT ANY WARRANTY; without even the implied warranty of
 *     MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 *     GNU Lesser General Public License for more details.
 * 
 *     You should have received a copy of the GNU Lesser General Public License
 *     along with JBeat.  If not, see <http://www.gnu.org/licenses/>.
 * 
 * Contributors:
 *     Irineu Martins de Lima Moura (imlm2) - initial API and implementation
 ******************************************************************************/
package br.ufpe.cin.imlm2.jbeat;

import java.util.Collection;

/**
 * This interface represents an exception flow analysis.<br>
 * Any implementor of this interface will have to provide <br>
 * a method for querying the exceptions thrown by a given method. <br>
 * There are no restrictions over the strictness of the analysis and <br>
 * as such this is left as an implementation detail.
 * @author irineu
 *
 */
public interface IExceptionFlowAnalysis {
	
	/**
	 * Returns all the exceptions found to be throwable by the method with signature <br>
	 *  <code>fullMethSignature</code> in the class with <code>fullyQualifiedClassName</code> name. <br>
	 *  If no exceptions are thrown by the given method then an empty collection is returned. <br>
	 *  If <code>fullyQualifiedClassName</code> or <code>fullMethSignature</code> don't correspond <br>
	 *  to valid names or to an inexistent class and/or method then an exception should be thrown.
	 * @param fullyQualifiedClassName
	 * @param fullMethSignature
	 * @return
	 * @throws Exception
	 */
	public abstract Collection<String> getExceptionsThrownBy(String fullyQualifiedClassName,
			String fullMethSignature) throws Exception;
	
}
